﻿<title>产品类别</title>
<link type="text/css" href="${ctx}/resources/css/ace.min.1.css"  rel="stylesheet" />



<div class="hr hr-5"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>类别名称</th>
						<th>类别图片</th>
						<#if adminRole == 1>
							<th>操作</th>
						</#if>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as u>
					<tr>
						<td>${u.id}</td>
						<td>${u.name!}</td>
						<td>
							<#list gsonUtils.getImgsJsonList(u.urlList) as url>
								<span class="profile-picture">
									<img style="height:105px;width:250px;" class="editable img-responsive" src="${tagUtils.getFileFullPath(url)}" />
								</span>
								<#break>
							</#list>
						</td>
						
						<#if adminRole == 1>
							<td>
								<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
									<a class="green" href="${ctx}/admin/category/edit-${u.id}${suffix}" alt="编辑">
										<i class="icon-pencil bigger-130" title="编辑"></i>
									</a>
									
								</div>
							</td>
						</#if>
					</tr>
				</#list>
				</tbody>
			</table>
		</div>
	
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/category/list${suffix}" />
	</div><!-- /span -->
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg!}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>


